package com.qaml.mes.device.domain.convert;

import com.qaml.mes.device.dao.CheckUpkeepUserDO;
import com.qaml.mes.device.dto.eqp.CheckUpkeepUserDTO;
import com.qaml.mes.device.vo.eqp.CheckUpkeepUserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Filename：CheckUpkeepUserConvert
 * @Author：zhangzhifeng
 * @Project：mes-device
 * @Date：2024/3/1 14:56
 */
@Mapper
public interface CheckUpkeepUserConvert {

    CheckUpkeepUserConvert INSTANCE = Mappers.getMapper(CheckUpkeepUserConvert.class);

    /**
     * 批量转换 DTO --> DO
     *
     * @param checkUpkeepUserDTOList
     * @return
     */
    List<CheckUpkeepUserDO> dto2DOList(List<CheckUpkeepUserDTO> checkUpkeepUserDTOList);

    /**
     * 批量转换 DO -->VO
     *
     * @param checkUpkeepUserDOS
     * @return
     */
    List<CheckUpkeepUserVO> toVOList(List<CheckUpkeepUserDO> checkUpkeepUserDOS);

    /**
     * DO-->VO
     */
    CheckUpkeepUserVO do2VO(CheckUpkeepUserDO checkUpkeepUserDO);
}
